<?php $this->load->view('head');?>
<!--content start-->
<div id="bagu-content">
    <span style="display:block; font-size:14px; font-weight:bold; margin-bottom:10px;">今天生日的会员列表</span>
    <table id="table_list" cellspacing="0" width="100%" class="list_table" style="border:#CCC 1px dashed; font-size:14px;">
        <tr style="display:block; height:35px; line-height:35px;">
            <th style="width:50px; text-align:center">排序</th>
            <th style="width:80px; text-align:center">客户类型</th>
            <th style="width:120px; text-align:center">账号</th>
            <th style="width:80px; text-align:center">姓名</th>
            <th style="width:40px; text-align:center">性别</th>
            <th style="width:100px; text-align:center">联系方式</th>
            <th style="width:150px; text-align:center">E-Mail</th>
            <th style="width:80px; text-align:center">QQ号码</th>
            <th style="width:100px; text-align:center">阴历生日</th>
            <th style="width:100px; text-align:center">阳历生日</th>
            <th style="width:80px; text-align:center">操作</th>
            <th style="width:100px; text-align:center">短信祝福</th>
            <th style="width:80px; text-align:center">邮件祝福</th>
        </tr>
        <?php if(!empty($member['data'])):?>
        <?php foreach($member['data'] as $key=>$val):?>
        <tr style="height:30px; line-height:30px; border-top:1px #CCC dashed; display:block">
        	<td style="width:50px; text-align:center"><?=$key+1?></td>
            <td style="width:80px; text-align:center"><?=$val['type']?></td>
            <td style="width:120px; text-align:center"><?=$val['account']?></td>
            <td style="width:80px; text-align:center"><?=$val['name']?></td>
            <td style="width:40px; text-align:center"><?=$val['sex']==1?'男':'女';?></td>
            <td style="width:100px; text-align:center"><?=$val['mobile']?></td>
            <td style="width:150px; text-align:center"><?=$val['email']?></td>
            <td style="width:80px; text-align:center"><?=$val['qq']?></td>
            <?php if($val['habitude']==1):?>
            <td style="width:100px; text-align:center"><?=$val['lyear'].'-'.$val['lbirthday']?></td>
            <?php else:?>
            <td style="width:100px; text-align:center;color:#F00"><?=$val['lyear'].'-'.$val['lbirthday']?></td>
            <?php endif;?>
			<?php if($val['habitude']==0):?>
            <td style="width:100px; text-align:center"><?=$val['syear'].'-'.$val['sbirthday']?></td>
            <?php else:?>
            <td style="width:100px; text-align:center; color:#F00"><?=$val['syear'].'-'.$val['sbirthday']?></td>
            <?php endif;?>
            <td style="width:80px; text-align:center"><a href="<?=site_url('member/detail').'/'.$val['id']?>">详细</a></td>
            <td style="width:100px; text-align:center"><a href="javascript:sms('<?=$val['mobile']?>','<?=$val['name']?>','birthday')">发送短信</a></td>
            <td style="width:80px; text-align:center"><a href="javascript:email('<?=$val['email']?>','<?=$val['name']?>','birthday')">发送邮件</a></td>
        </tr>
        <?php endforeach;?>
        <?php else:?>
        	暂时没有用户
        <?php endif;?>
    </table>
    <?=!empty($member['html'])?$member['html']:''?>
</div>
<!--content end-->	
<?php $this->load->view('footer');?>
<script type="text/javascript">
	//通过ajax的方式发送短信
	function sms(mobile,name,type){
		
	}
	
	//通过ajax方式发送email
	function email(email,name,type){
		
	}
</script>